package cn.szzsi.business.controller;

import cn.szzsi.aci.dto.StoreDto;
import cn.szzsi.aci.service.ConfigInterface;
import cn.szzsi.aci.service.StoreInterface;
import cn.szzsi.business.apiservice.ConfigService;
import cn.szzsi.core.dubbo.DubboService;
import com.alibaba.fastjson.JSONObject;
import com.jfinal.core.Controller;
import com.jfinal.kit.HttpKit;
import com.jfinal.kit.JsonKit;
import com.jfinal.upload.UploadFile;


import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class TestController extends Controller {


    public void index(){
        StoreInterface storeInterface=DubboService.getInstance().imports(StoreInterface.class);
        List<StoreDto>aaa=storeInterface.getStoreInfos("[c1a8ea98ec7c43889527e69dbf39cff9, 49777a698ffe4723afc2c47649e27502]");
        renderJson(aaa);


    }

    public static void main(String[] args) {//http://t.cn/Rl15IQh
        //HttpKit.get("http://localhost:8080/testfile?file=");
        String url="http://api.t.sina.com.cn/short_url/shorten.xml?source=5786724301&url_long=https://9hive.cn";
        String result=HttpKit.get(url);
        System.out.println(result);
    }
}
